package ua.khpi.si.kit49.diploma.service;

import java.util.List;

import ua.khpi.si.kit49.diploma.db.dto.City;

/**
 * Interface for city service
 * 
 * @author netstalk3r
 * 
 */
public interface CityService {

	/**
	 * method for getting all cities
	 * 
	 * @return list with cities
	 * @throws Exception
	 *             data base exception
	 */
	List<City> getAllCities() throws Exception;

	/**
	 * method for getting city by id
	 * 
	 * @param id
	 *            current id
	 * @return particular city
	 * @throws Exception
	 *             data base exception
	 */
	City getCityById(Integer id) throws Exception;

	/**
	 * method for getting amount of city
	 * 
	 * @return quantity of city
	 */
	Integer getAmountOfCity();
}
